//
//  LGPhotoPickerView.h
//  LGSanofiPatient
//
//  Created by 1234 on 2023/1/12.
//

#import <UIKit/UIKit.h>

NS_ASSUME_NONNULL_BEGIN
@protocol LGPhotoPickerDelegate <NSObject>

@optional;

//改变高度
-(void)imagePickerHeightChanged:(CGFloat)height;

//删除网络照片
-(void)deleteNetPhotoAtIndex:(NSInteger)index;

//新增的图片
-(void)addImagePickerChanged:(NSArray *)imageArray;
//所有的图片（网络+本地）
-(void)allImagePickerChanged:(NSArray *)imageArray;
//所有的model（网络+本地）
-(void)modelImagePickerChanged:(NSArray *)modelArray;

/**  带标识参数  **/
//新增的图片
-(void)addImagePickerChanged:(NSArray *)imageArray tagString:(NSString *)tagString;
//所有的图片（网络+本地）
-(void)allImagePickerChanged:(NSArray *)imageArray tagString:(NSString *)tagString;
//所有的model（网络+本地）
-(void)modelImagePickerChanged:(NSArray *)modelArray tagString:(NSString *)tagString;

@end

@interface LGPhotoPickerView : UIView

/**   */
@property (nonatomic , assign)id <LGPhotoPickerDelegate> delegate;

@property (nonatomic , strong)UICollectionView *collectionView;
/**   */
@property (nonatomic , copy)void (^contentHeightChanged)(void);
//选择的图片数据(ALAsset)
@property (nonatomic , strong)NSMutableArray *selectedAssetArray;

//方形压缩图image 数组
@property (nonatomic , strong)NSMutableArray *smallImageArray;
//方形压缩图data 数组
@property (nonatomic , strong , readonly)NSMutableArray *smallDataArray;

//大图image 数组
@property (nonatomic , strong)NSMutableArray *bigImageArray;
//大图data 数组
@property (nonatomic , strong , readonly)NSMutableArray *bigDataArray;

//新添加的图片
@property (nonatomic , strong)NSMutableArray *addImageArray;
//所有的图片
@property (nonatomic , strong)NSMutableArray *allImageArray;
/**  网络图片:保存后图片不可删除 */
@property (nonatomic , strong)NSMutableArray *urlArray;
/**   */
@property (nonatomic , copy)NSString *questionId;
//图片总数量限制
@property (nonatomic , assign)NSInteger maxCount;
/**  标识 */
@property (nonatomic , copy)NSString *tagString;

//获取选中的所有图片信息
- (NSMutableArray *)getSmallImageArray;
- (NSMutableArray *)getSmallDataImageArray;
- (NSMutableArray *)getBigImageArray;
- (NSMutableArray *)getBigImageDataArray;
- (NSMutableArray *)getALAssetArray;
- (NSMutableArray *)getUrlArray;
@end


NS_ASSUME_NONNULL_END
